package cn.qiyu5522.service;

import cn.qiyu5522.domain.DTO.RoleAddDTO;
import cn.qiyu5522.domain.DTO.RoleChangeDTO;
import cn.qiyu5522.domain.entity.ResponseResult;
import cn.qiyu5522.domain.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 角色信息表 服务类
 * </p>
 *
 * @author Tonkey
 * @since 2024-04-22
 */
public interface RoleService extends IService<Role> {

    List<String> selectRoleKeyByUserId(Long id);

    ResponseResult getRoleListByCondition(Integer pageNum, Integer pageSize, String roleName, String status);

    ResponseResult changeStatus(RoleChangeDTO roleChangeDTO);

    ResponseResult addRole(RoleAddDTO roleAddDTO);

    ResponseResult getRoleById(Long id);
}
